package cn.tedu.eg1.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class OrderController {
    @RequestMapping("/v1/order/add")
    @ResponseBody
    public String addOrder(){
        return "创建订单成功";
    }

    @RequestMapping("/v1/order/list")
    @ResponseBody
    public String listOrder(){
        return "查看订单列表成功";
    }

    @RequestMapping("/v1/order/del")
    @ResponseBody
    public String delOrder(){
        return "删除订单成功";
    }

    @RequestMapping("/v1/order/update")
    @ResponseBody
    public String updateOrder(){
        return "修改订单成功";
    }

}
